<?php
/*
  $Id:$
  
  新闻列表
 */
include ROOT .'/include/class/split_page_results.php';
define('MAX_DISPLAY_SEARCH_RESULTS', 10);
define('MAX_DISPLAY_PAGE_LINKS', 5);

#$articles = db_fetch_all("select * from article");
$listing_sql = "select * from article where status='visiable' order by created_at desc";
$listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS);

$articles = db_fetch_all($listing_split->sql_query);
include get_template('index');